package com.qianxi.wit.manager.controller;

import java.util.Arrays;
import java.util.Map;

import com.qianxi.common.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.qianxi.wit.manager.entity.PhysicianEntity;
import com.qianxi.wit.manager.service.PhysicianService;
import com.qianxi.common.utils.PageUtils;
import com.qianxi.common.utils.R;


/**
 * 医师表
 *
 * @author eight.groups
 * @email wise.infomation.technology@126.com
 * @date 2021-01-07 13:23:32
 */
@RestController
public class PhysicianController {
    @Autowired
    private PhysicianService physicianService;

    /**
     * 3.某科室下医师分类信息API
     * http://wise.infomation.com/api/manager/physician/statistics/{departmentId}
     * 根据某医院下具体的科室(departmentId)，来查询统计其主治医师、专家医师、普通医师职位的医生人数、好评度、问诊人数等信息。
     * @param departmentId
     * @return
     */
    @PostMapping("/physician/statistics/{departmentId}")
    public Result findPhysicianCategoryDetailsByDepartmentId(
            @PathVariable("departmentId") Long departmentId
    ) {
        // TODO 1.3 【丁宁，佳圆】 某科室下医师分类信息API
        return Result.ok();
    }

    /**
     * 4.医师职位详情API
     * 根据职位名称（如：主治医师）查询在其位置想详情信息
     * （医师名称、等级、年限、资格证书、职业证书、访问次数、总收入、好评度）
     * http://wise.infomation.com/api/manager/physician/{departmentPhysicianCategoryId}/{page}/{size}
     * @param physicianEntity
     * @param departmentPhysicianCategoryId
     * @param page
     * @param size
     * @return
     */
    @PostMapping("/physician/{departmentPhysicianCategoryId}/{page}/{size}")
    public Result findPhysicianDetailsByDepartmentPhysicianCategoryId(
            @RequestBody PhysicianEntity physicianEntity,
            @PathVariable("departmentPhysicianCategoryId") Long departmentPhysicianCategoryId,
            @PathVariable("page") int page,
            @PathVariable("size") int size
    ){
        // TODO 1.4 【丁宁，佳圆】 医师职位详情API
        return Result.ok();
    }
}
